/**@file    usart.h
 * @brief
 * 
 * @author SealedGhost
 */
 
 

#ifndef _usart_h
#define _usart_h
#include "stm32f10x_usart.h"

#include <stddef.h>

#define USART1_RX_BUF_SIZE     512
extern uint8_t Usart1_RxBuf[USART1_RX_BUF_SIZE];
extern uint16_t Usart1_RxCnt;

void initUsart1(uint32_t baudRate);
void initUsart3(uint32_t baudRate);
void sendByteByUsart(USART_TypeDef* usart, uint8_t val);
void sendBytesByUsart(USART_TypeDef* usart, uint8_t* buf, size_t size);




#endif


